package com.xiaoshu.config;

import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 功能说明： Mybatis-plus 插件配置信息
 * com.xiaoshu.config
 * https://blog.csdn.net/weixin_42268572/article/details/108465455
 * <p>
 * Original @Author: deane.jia-贾亮亮,2021/6/16 17:42
 * <p>
 * Copyright (C)2012-2021 小树盛凯科技 All rights reserved.
 */
@EnableTransactionManagement
@Configuration
@MapperScan(basePackages = {"com.xiaoshu.**.mapper*"})
public class MybatisPlusConfig {

    public MybatisPlusConfig() {
    }

    /**
     * mybatis-plus 集成分页插件配置
     * @Auther Hsg
     * @Date 2020/09/07
     */
    @Bean
    public MybatisPlusInterceptor paginationInterceptor(){
        return new MybatisPlusInterceptor();
    }


}
